package com.xiaojiu.nohttp;


import android.content.Context;

import com.yolanda.nohttp.RequestMethod;


/**
 * Created by Jacky on 2016/10/31.
 */
public class GetRequest extends BaseRequest<GetRequest> {


    public GetRequest(Context context, String url) {
        this.url = url;
        this.context = context;
    }

    public <T> void execute(Class<T> classOfT, RequestArrayListener<T> l) {
        requestMethod(RequestMethod.GET);
        RequestManager.loadArray(this, classOfT, l);
    }

    public void execute(RequestListener l) {
        requestMethod(RequestMethod.GET);
        RequestManager.loadString(this, l);
    }
}
